package com.rui.visitor.obj;

/**
 * @Description: 具体的访问者类, 访问者角色(CEO)
 * @Author: ZhangRui
 * @Date: 2023/3/3 17:06
 * @Version: 1.0
 */
public class CeoVisitor implements IVisitor {

    @Override
    public void visit(Engineer engineer) {
        System.out.println(engineer.getName() + "KPI为:" + engineer.getKpi());
    }

    @Override
    public void visit(Pm pm) {
        System.out.println(pm.getName() + "KPI为:" + pm.getKpi());
    }

}
